
#ifndef _VEHICLE_OTA_MAIN_H__
#define _VEHICLE_OTA_MAIN_H__

typedef struct struct_otaMsgMark
{
    uint8_t haveOtaCmd; //表面已有指令，防止再次接收
    uint8_t ecuMsgMark;
    uint16_t ticksSec;
    uint8_t ecuCount;
    uint8_t ecuMsgReciveCount;
}t_otaMsgMark;



void VechicleOtaInit(void);
void VehicleOtaStateCheckMainLoop(void);
void VehicleEcuQueueOTAMainLoop(void);
void VehicleOtaStateFileDownloadMainLoop(void);
void VehicleOtaStateFileCheckMainLoop(void);
void VehicleOtaEcuUpGradeMainLoop(void);
void VehicleOtaCmdAckMain(void);
void DownloadEcuFile(void);

void CreatTestFileData(void);
void OtaFileDownTest(void);
void SetLocalUDSMainWhile(bool state);
bool GetSetLocalUDSMainWhile(void);


#endif



